package com.itboy.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import javax.sql.DataSource;


/**
 * @Program: learnSpringBoot
 * @ClassName: com.itboy.config
 * @Author: Lee
 * @Copyright:Lee
 * @Date: 2021-01-09
 * @Description: ${todo}
 */

//@EnableConfigurationProperties(JdbcProperties.class)
@Configuration
public class JdbcConfig {


//    @Bean
//    @ConfigurationProperties(prefix = "jdbc")
//    public DataSource dataSource (){
//
//        return new DruidDataSource();
//    }
}
